USE [SONALIKA_BGK_UPDATED]
GO

/****** Object:  Table [dbo].[SUPPLIER]    Script Date: 13-May-14 1:04:21 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[SUPPLIER](
	[SUPPLIER_ID] [int] IDENTITY(1,1) NOT NULL,
	[SUPPLIER_NAME] [varchar](50) NOT NULL,
	[SUPPLIER_CONTACT_NO] [bigint] NOT NULL,
	[SUPPLIER_ADDRESS] [varchar](max) NOT NULL,
	[SUPPLIER_TYPE] [int] NOT NULL,
	[SUPPLIER_STATUS] [int] NOT NULL,
 CONSTRAINT [PK_SUPPLIER] PRIMARY KEY CLUSTERED 
(
	[SUPPLIER_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[SUPPLIER]  WITH CHECK ADD  CONSTRAINT [FK_SUPPLIER_STATUS_MASTER] FOREIGN KEY([SUPPLIER_STATUS])
REFERENCES [dbo].[MASTER] ([MASTER_ID])
GO

ALTER TABLE [dbo].[SUPPLIER] CHECK CONSTRAINT [FK_SUPPLIER_STATUS_MASTER]
GO

ALTER TABLE [dbo].[SUPPLIER]  WITH CHECK ADD  CONSTRAINT [FK_SUPPLIER_TYPE_MASTER] FOREIGN KEY([SUPPLIER_TYPE])
REFERENCES [dbo].[MASTER] ([MASTER_ID])
GO

ALTER TABLE [dbo].[SUPPLIER] CHECK CONSTRAINT [FK_SUPPLIER_TYPE_MASTER]
GO


